<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>std.c.fenv</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "std.c.fenv";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/std.c.fenv.html" class="symbol">std.c.fenv</a></h1>
  
<div class="summary">C's &lt;fenv.h&gt;</div>
<p class="sec_header">Authors:</p>Walter Bright, Digital Mars, www.digitalmars.com
<p class="sec_header">License:</p>Public Domain
<dl>
<dt class="decl">struct <a class="symbol _struct" name="fenv_t" href="./htmlsrc/std.c.fenv.html#L16" kind="struct" beg="16" end="44">fenv_t</a>; <a title="Permalink to this symbol" href="#fenv_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L16">#</a></dt>
<dd class="ddef">
<div class="summary">Entire floating point environment</div>
<dl>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__control_word" href="./htmlsrc/std.c.fenv.html#L27" kind="variable" beg="27" end="27">__control_word</a>; <a title="Permalink to this symbol" href="#fenv_t.__control_word" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L27">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__unused1" href="./htmlsrc/std.c.fenv.html#L28" kind="variable" beg="28" end="28">__unused1</a>; <a title="Permalink to this symbol" href="#fenv_t.__unused1" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L28">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__status_word" href="./htmlsrc/std.c.fenv.html#L29" kind="variable" beg="29" end="29">__status_word</a>; <a title="Permalink to this symbol" href="#fenv_t.__status_word" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L29">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__unused2" href="./htmlsrc/std.c.fenv.html#L30" kind="variable" beg="30" end="30">__unused2</a>; <a title="Permalink to this symbol" href="#fenv_t.__unused2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L30">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__tags" href="./htmlsrc/std.c.fenv.html#L31" kind="variable" beg="31" end="31">__tags</a>; <a title="Permalink to this symbol" href="#fenv_t.__tags" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L31">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__unused3" href="./htmlsrc/std.c.fenv.html#L32" kind="variable" beg="32" end="32">__unused3</a>; <a title="Permalink to this symbol" href="#fenv_t.__unused3" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L32">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _variable" name="fenv_t.__eip" href="./htmlsrc/std.c.fenv.html#L33" kind="variable" beg="33" end="33">__eip</a>; <a title="Permalink to this symbol" href="#fenv_t.__eip" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L33">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__cs_selector" href="./htmlsrc/std.c.fenv.html#L34" kind="variable" beg="34" end="34">__cs_selector</a>; <a title="Permalink to this symbol" href="#fenv_t.__cs_selector" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L34">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__opcode" href="./htmlsrc/std.c.fenv.html#L35" kind="variable" beg="35" end="35">__opcode</a>; <a title="Permalink to this symbol" href="#fenv_t.__opcode" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L35">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _variable" name="fenv_t.__data_offset" href="./htmlsrc/std.c.fenv.html#L36" kind="variable" beg="36" end="36">__data_offset</a>; <a title="Permalink to this symbol" href="#fenv_t.__data_offset" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L36">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__data_selector" href="./htmlsrc/std.c.fenv.html#L37" kind="variable" beg="37" end="37">__data_selector</a>; <a title="Permalink to this symbol" href="#fenv_t.__data_selector" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L37">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ushort <a class="symbol _variable" name="fenv_t.__unused5" href="./htmlsrc/std.c.fenv.html#L38" kind="variable" beg="38" end="38">__unused5</a>; <a title="Permalink to this symbol" href="#fenv_t.__unused5" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L38">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">alias int <a class="symbol _alias" name="fexcept_t" href="./htmlsrc/std.c.fenv.html#L46" kind="alias" beg="46" end="46">fexcept_t</a>; <a title="Permalink to this symbol" href="#fexcept_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L46">#</a></dt>
<dd class="ddef">
<div class="summary">Floating point status flags</div></dd>
<dt class="decl"><a class="symbol _enum" name="enum" href="./htmlsrc/std.c.fenv.html#L49" kind="enum" beg="49" end="58">enum</a>; <a title="Permalink to this symbol" href="#enum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L49">#</a></dt>
<dd class="ddef">
<div class="summary">The various floating point exceptions</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_INVALID" href="./htmlsrc/std.c.fenv.html#L51" kind="enummem" beg="51" end="51">FE_INVALID</a> <a title="Permalink to this symbol" href="#enum.FE_INVALID" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L51">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_DENORMAL" href="./htmlsrc/std.c.fenv.html#L52" kind="enummem" beg="52" end="52">FE_DENORMAL</a> <a title="Permalink to this symbol" href="#enum.FE_DENORMAL" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L52">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_DIVBYZERO" href="./htmlsrc/std.c.fenv.html#L53" kind="enummem" beg="53" end="53">FE_DIVBYZERO</a> <a title="Permalink to this symbol" href="#enum.FE_DIVBYZERO" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L53">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_OVERFLOW" href="./htmlsrc/std.c.fenv.html#L54" kind="enummem" beg="54" end="54">FE_OVERFLOW</a> <a title="Permalink to this symbol" href="#enum.FE_OVERFLOW" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L54">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_UNDERFLOW" href="./htmlsrc/std.c.fenv.html#L55" kind="enummem" beg="55" end="55">FE_UNDERFLOW</a> <a title="Permalink to this symbol" href="#enum.FE_UNDERFLOW" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L55">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_INEXACT" href="./htmlsrc/std.c.fenv.html#L56" kind="enummem" beg="56" end="56">FE_INEXACT</a> <a title="Permalink to this symbol" href="#enum.FE_INEXACT" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L56">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_ALL_EXCEPT" href="./htmlsrc/std.c.fenv.html#L57" kind="enummem" beg="57" end="57">FE_ALL_EXCEPT</a> <a title="Permalink to this symbol" href="#enum.FE_ALL_EXCEPT" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L57">#</a></dt>
<dd class="ddef">
<div class="summary">Mask of all the exceptions</div></dd></dl></dd>
<dt class="decl"><a class="symbol _enum" name="enum:2" href="./htmlsrc/std.c.fenv.html#L61" kind="enum" beg="61" end="67">enum</a>; <a title="Permalink to this symbol" href="#enum:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L61">#</a></dt>
<dd class="ddef">
<div class="summary">Rounding modes</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_TONEAREST" href="./htmlsrc/std.c.fenv.html#L63" kind="enummem" beg="63" end="63">FE_TONEAREST</a> <a title="Permalink to this symbol" href="#enum.FE_TONEAREST" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L63">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_UPWARD" href="./htmlsrc/std.c.fenv.html#L64" kind="enummem" beg="64" end="64">FE_UPWARD</a> <a title="Permalink to this symbol" href="#enum.FE_UPWARD" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L64">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_DOWNWARD" href="./htmlsrc/std.c.fenv.html#L65" kind="enummem" beg="65" end="65">FE_DOWNWARD</a> <a title="Permalink to this symbol" href="#enum.FE_DOWNWARD" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L65">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_TOWARDZERO" href="./htmlsrc/std.c.fenv.html#L66" kind="enummem" beg="66" end="66">FE_TOWARDZERO</a> <a title="Permalink to this symbol" href="#enum.FE_TOWARDZERO" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L66">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">fenv_t* <a class="symbol _variable" name="FE_DFL_ENV" href="./htmlsrc/std.c.fenv.html#L79" kind="variable" beg="79" end="79">FE_DFL_ENV</a>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#FE_DFL_ENV" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L79">#</a></dt>
<dd class="ddef">
<div class="summary">Default floating point environment</div></dd>
<dt class="decl"><a class="symbol _enum" name="enum:3" href="./htmlsrc/std.c.fenv.html#L87" kind="enum" beg="87" end="92">enum</a>; <a title="Permalink to this symbol" href="#enum:3" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L87">#</a></dt>
<dd class="ddef">
<div class="summary">Floating point precision</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_FLTPREC" href="./htmlsrc/std.c.fenv.html#L89" kind="enummem" beg="89" end="89">FE_FLTPREC</a> <a title="Permalink to this symbol" href="#enum.FE_FLTPREC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L89">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_DBLPREC" href="./htmlsrc/std.c.fenv.html#L90" kind="enummem" beg="90" end="90">FE_DBLPREC</a> <a title="Permalink to this symbol" href="#enum.FE_DBLPREC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L90">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.FE_LDBLPREC" href="./htmlsrc/std.c.fenv.html#L91" kind="enummem" beg="91" end="91">FE_LDBLPREC</a> <a title="Permalink to this symbol" href="#enum.FE_LDBLPREC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L91">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">int <a class="symbol _function" name="fetestexcept" href="./htmlsrc/std.c.fenv.html#L94" kind="function" beg="94" end="94">fetestexcept</a><span class="params">(int <em>excepts</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fetestexcept" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L94">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="feraiseexcept" href="./htmlsrc/std.c.fenv.html#L95" kind="function" beg="95" end="95">feraiseexcept</a><span class="params">(int <em>excepts</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#feraiseexcept" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L95">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="feclearexcept" href="./htmlsrc/std.c.fenv.html#L96" kind="function" beg="96" end="96">feclearexcept</a><span class="params">(int <em>excepts</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#feclearexcept" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L96">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fegetround" href="./htmlsrc/std.c.fenv.html#L99" kind="function" beg="99" end="99">fegetround</a><span class="params">()</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fegetround" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L99">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fesetround" href="./htmlsrc/std.c.fenv.html#L100" kind="function" beg="100" end="100">fesetround</a><span class="params">(int <em>round</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fesetround" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L100">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fegetprec" href="./htmlsrc/std.c.fenv.html#L101" kind="function" beg="101" end="101">fegetprec</a><span class="params">()</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fegetprec" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L101">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fesetprec" href="./htmlsrc/std.c.fenv.html#L102" kind="function" beg="102" end="102">fesetprec</a><span class="params">(int <em>prec</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fesetprec" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L102">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fegetenv" href="./htmlsrc/std.c.fenv.html#L103" kind="function" beg="103" end="103">fegetenv</a><span class="params">(fenv_t * <em>envp</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fegetenv" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L103">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fesetenv" href="./htmlsrc/std.c.fenv.html#L104" kind="function" beg="104" end="104">fesetenv</a><span class="params">(in fenv_t * <em>envp</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fesetenv" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L104">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fegetexceptflag" href="./htmlsrc/std.c.fenv.html#L108" kind="function" beg="108" end="108">fegetexceptflag</a><span class="params">(fexcept_t * <em>flagp</em>, int <em>excepts</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fegetexceptflag" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L108">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="fesetexceptflag" href="./htmlsrc/std.c.fenv.html#L109" kind="function" beg="109" end="109">fesetexceptflag</a><span class="params">(in fexcept_t * <em>flagp</em>, int <em>excepts</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#fesetexceptflag" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L109">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="feholdexcept" href="./htmlsrc/std.c.fenv.html#L110" kind="function" beg="110" end="110">feholdexcept</a><span class="params">(fenv_t * <em>envp</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#feholdexcept" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L110">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="feupdateenv" href="./htmlsrc/std.c.fenv.html#L111" kind="function" beg="111" end="111">feupdateenv</a><span class="params">(in fenv_t * <em>envp</em>)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#feupdateenv" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.c.fenv.html#L111">#</a></dt>
<dd class="ddef"></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 1999-2008 by Digital Mars ®, All Rights Reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Dec 28 04:26:34 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>